#ifndef _SOCKETIO_HH
#define _SOCKETIO_HH

#include <unistd.h>
#include <errno.h>
#include <error.h>
#include <string.h>
#include <sys/socket.h>
#include <iostream>

class SocketIO 
{
public:
    explicit SocketIO(int fd);
    ~SocketIO();

    size_t Read_n(char *buf, size_t length);
    size_t Read_line(char *buf, size_t length);
    size_t Write_n(const char *buf, size_t length);

private: 
    int _fd;
};

#endif